package collection;

import java.util.HashSet;
import java.util.Set;

/**
 * HashSet:  无序，不重复数组。
 */
public class SetDemo1 {
    public static void main(String[] args) {
        Set<Point> s = new HashSet<>();
        s.add(new Point(2,3));
        s.add(new Point(5,6));
        s.add(new Point(4,8));
        s.add(new Point(1,2));
        s.add(new Point(2,3));
        System.out.println(s);
    }
}
